/**
 * Note: The returned array must be malloced, assume caller calls free().
 */
int* twoSum(int* nums, int numsSize, int target, int* returnSize){

    int *result =(int*)malloc(2*sizeof(int));
    int temp=0;

    for(int i=0;i<numsSize;i++)
    {
        temp = target -nums[i];
        for(int j=i+1;j<numsSize;j++)
        {
            if(nums[j]==temp)
            {
                result[0]  =i;
                result[1] = j;
                *returnSize =2;
                return result;
            }
        }
    }

    return 0;
}
